home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000084_news@columbia.edu _Thu Apr 26 17:45:38 2001.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id RAA07889
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Thu, 26 Apr 2001 17:45:38 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id RAA06643
  7.     for kermit.misc@watsun.cc.columbia.edu; Thu, 26 Apr 2001 17:34:47 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. Message-ID: <3AE89513.19D4DF4E@plustechnologies.com>
  10. From: Rich Gray <richNOgSPAM@plustechnologies.com>
  11. Organization: Plus Technologies Div. of Digital Controls Corp.
  12. Subject: Re: copying a file to a ftp-server
  13. Date: Thu, 26 Apr 2001 17:37:23 -0400
  14. To: kermit.misc@columbia.edu
  15.  
  16. Frank da Cruz wrote:
  17. > In article <20010426.13080200@risa.athome>,
  18. > <christian.verbeek@gmd.de> wrote:
  19. > :
  20. > : how do i put a single file to a ftp server from the command line. With=20
  21. > : the ftp program i always end up in interactive mode, but i want to do=20
  22. > : this from within a script.
  23. > :
  24. > : So i need something like: ftpcopy myfile ftp://myftpserver
  25. > :
  26. > If you use the new Kermit FTP client:
  27. >   http://www.columbia.edu/kermit/ftpclient.html
  28. > you can do it like this:
  29. >   ftp -A kermit.columbia.edu -D kermit/incoming -bp debug.log
  30. > In this example:
  31. >   ftp is a symlink to the C-Kermit 7.1 binary
  32. >   -A means "log in as user anonymous"
  33. >   -D means CD to the given directory
  34. >   -b means force binary mode
  35. >   -p means PUT
  36. > You can also specify a real username and password:
  37. >   ftp -u christian.verbeek -P secret ...
  38. > And before anybody objects that cleartext passwords should never be used:
  39. >  1. Sometimes you have no choice.
  40.  
  41. Yep!  :-(
  42.  
  43. >  2. The Kermit FTP client supports several secure authentication
  44. >     methods: Kerberos 4, Kerberos 5 GSSAPI, SRP, SSL/TLS.
  45. > Secure FTP servers are available.  To find out more, see:
  46. >   http://www.columbia.edu/kermit/ftpd.html
  47. > - Frank
  48.  
  49. And subsequently wrote:
  50. >...
  51. > As for password safety, putting passwords in the .netrc file is no safer
  52. > than putting them in scripts.  The only solution to this problem is to
  53. > use secure authentication methods.  But the limiting factor in this case
  54. > is whether a secure server is available on the other end.  At the moment,
  55. > this is generally not the case.  But increasingly, it can be.  As noted
  56. > previously, secure FTP servers are available:
  57. >   http://www.columbia.edu/kermit/ftpd.html
  58. > and as time goes on they will find their way into standard UNIX
  59. > distributions.
  60. > - Frank
  61.  
  62. There can be a heck of a difference between getting a userid/password
  63. from a .netrc file or some other indirect source and specifiying
  64. directly on the command line.   If you put it in on a command line, it
  65. can show up in ps! Talk about exposed!  A non-command line user:password
  66. is at least "secured" by file permissions.  The cURL
  67. (http://curl.haxx.se) utility has the ability to take parameters from a
  68. file or standard input.  I use it to do an ftp transfer by invoking it
  69. in a popen(), piping in parms I don't want to show up on the command
  70. line (like -u user:password) and letting things I want visible in ps go
  71. on the command line.  I trust kermit has a similar capability?
  72.  
  73. Cheers!
  74. Rich
  75.  
  76. mailto:richNOgSPAM@plustechnologies.com  (remove NO SPAM to reply)